<?php

use Illuminate\Database\Seeder;
use App\Role;
use App\Permission;

class RoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Role::firstOrCreate([
            'name' => 'sys_admin',
            'display_name' => '超级管理员',
            'description'   => ''
        ]);

        Permission::firstOrCreate([
            'name' => 'admin_sign_in',
            'display_name' => '登录',
            'description'   => ''
        ]);


    }
}
